package com.xja.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.xja.mapper.ContentTypeMapper;
import com.xja.entity.ContentType;
import com.xja.service.ContentTypeService;
@Service
public class ContentTypeServiceImpl implements ContentTypeService{

    @Resource
    private ContentTypeMapper contentTypeMapper;

    @Override
    public int deleteByPrimaryKey(Integer cid) {
        return contentTypeMapper.deleteByPrimaryKey(cid);
    }

    @Override
    public int insert(ContentType record) {
        return contentTypeMapper.insert(record);
    }

    @Override
    public int insertSelective(ContentType record) {
        return contentTypeMapper.insertSelective(record);
    }

    @Override
    public ContentType selectByPrimaryKey(Integer cid) {
        return contentTypeMapper.selectByPrimaryKey(cid);
    }

    @Override
    public int updateByPrimaryKeySelective(ContentType record) {
        return contentTypeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ContentType record) {
        return contentTypeMapper.updateByPrimaryKey(record);
    }

}
